<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title> 任务管理中心 </title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">任务管理中心</strong>
                                    </span>
                                </span>
                        </a>
                    </div>
                    <div class="logo-element">任务管理中心
                    </div>
                </li>
                <li>
                    <a class="J_menuItem" href="index_v1.html">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">主页</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o"></i>
                        <span class="nav-label">项目管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="project-list.html">项目管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="retry-task-list.html">任务管理</a>
                        </li>
                        <!--<li>
                            <a class="J_menuItem" href="graph_morris.html">统计报表</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="graph_rickshaw.html">日志管理</a>
                        </li>-->
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;background: #3d4c51;">
                <a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#">
                    <i class="fa fa-bars"></i> </a>
                <div style="width: 30px;height:30px;float: right;margin: 20px;">
                    <!--<a href="./login.html">退出</a></dd>-->
                    <label id="loginOut" style="width: 100%;height: 100%;cursor: pointer;color: aliceblue;">
                        退出
                    </label>
                </div>
            </nav>

        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe id="J_iframe" width="100%" height="100%" src="index_v1.html?v=4.0" frameborder="0"
                    data-id="index_v1.html" seamless></iframe>
        </div>
    </div>
    <!--右侧部分结束-->
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="js/plugins/layer/layer.min.js"></script>

<!-- 自定义js -->
<script src="js/hAdmin.js?v=4.1.0"></script>
<script type="text/javascript" src="js/index.js"></script>

<!-- 第三方插件 -->
<script src="js/plugins/pace/pace.min.js"></script>
<script>
    $("#loginOut").click(function () {
        loginOut();
    });

    function loginOut() {
        var url = "/retrytask/loginOut";
        $.ajax({
            url: url,
            type: "GET",
            data: {},
            dataType: "json",
            success: function (result) {
                if (result.code == '-999') {
                    return;
                }
            },
            error: function (err) {
                console.log(err.statusText);
                console.log('异常');
            },
            complete: function (XMLHttpRequest, textStatus) {
                var redirect = XMLHttpRequest.getResponseHeader("Redirect");
                if (redirect == "true") {
                    window.location.href = XMLHttpRequest.getResponseHeader("RedirectUrl");
                }
            }
        })
    }
</script>
</body>

</html>
